<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
	<script type="text/javascript" src=""></script>
	<script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app">
		
	</div>	
<script type="text/javascript">
	new Vue({
		el:'#app',
		template: `
			<div class="btn-group">
				<button ref="btn1">btn1</button>
				<button ref="btn2">btn2</button>
				<button ref="btn3">btn3</button>
				<button ref="btn4">btn4</button>
				<button ref="btn5">btn5</button>
			</div>
		 `,
		 created(){
		 	// 这里一般就是数据初始化，页面一进来去请求数据
		 	console.log(this.$refs);//{}
		 },
		 beforeMount(){
		 	console.log(this.$refs);//{}
		 },
		 mounted(){
		 	// DOM加载完成之后
		 	// 一般这里是操作DOM元素
		 	console.log(this.$refs);//{btn: button}
		 },
		 methods:{

		 }
	})
</script>
</body>
</html>